/**
 * text 字段名
 * id   字段
 * type:0 默认输入框 singleBox单选  drop下拉框 description文本域
 */
const data = {
  // 创建数据集
  datasetOptions: [
    {
      text: '名称',
      id: 'dataset_name',
      placeHolder: 'dataset-1157',
      type:0,
      rule: [{ required: true, message: '请输入活动名称', trigger: 'blur' }],
    },
    {
      text: '描述',
      id: 'description',
      type: 'description',
      placeHolder: '这里是描述',
      rule: [{ required: true, message: '请输入描述', trigger: 'blur' }],
    },
    {
      text: '数据输入路径',
      id: 'data_path',
      placeHolder: '请输入对象存储服务(OBS)路径',
      type:0,
      rule: [
        {
          required: true,
          message: '请输入对象存储服务(OBS)路径',
          trigger: 'blur',
        },
      ],
    },
    {
      text: '数据输出路径',
      id: 'work_path',
      placeHolder: '请输入对象存储服务(OBS)路径',
      type:0,
      rule: [
        {
          required: true,
          message: '请输出对象存储服务(OBS)路径',
          trigger: 'blur',
        },
      ],
    },
  ],
  // 创建算法
  algorithmOptions: [
    {
      text: '算法名称',
      id: 'name',
      placeHolder: 'algorithm',
      rule: [{ required: true, message: '请输入算法名称', trigger: 'blur' }],
    },
    {
      text: '算法描述',
      id: 'description',
      placeHolder: '这里是算法描述',
      type: 'description',
      rule: [{ required: true, trigger: 'blur' }],
    },
    {
      text: '启动方式',
      id: 'type',
      rule: [{ required: true, trigger: 'blur' }],
      type:'singleBox',
      op: [
        {text:'预置框架',value:0},
        {text:'自定义',value:1}
      ]
    },
    {
      text: '',
      id: 'engine_id',
      type: 'drop',
      isShow:false,
      ids: 0,
      placeHolder:'caffe-1.0.0-python2.6',
    },
    {
      text: '算法代码目录',
      id: 'code_dir',
      ids: 0,
      placeHolder: '请输入算法代码目录',
    },
    {
      text: '代码启动文件',
      id: 'boot_file',
      ids:0,
      placeHolder: '请输入代码启动文件',
      rule: [{ required: true, message: '请输入代码启动文件', trigger: 'blur' }],
    },
    
    {
      text: '镜像',
      id: 'image_url',
      ids:1,
      placeHolder: '请输入镜像',
      rule: [{ required: true, message: '请输入镜像', trigger: 'blur' }],
    },
    {
      text: '算法代码目录',
      id: 'code_dir',
      ids:1,
      placeHolder: '请输入算法代码目录',
      rule: [{ required: true, message: '请输入算法代码目录', trigger: 'blur' }],
    },
    {
      text: '启动命令',
      id: 'command',
      ids:1,
      placeHolder: '启动命令',
      rule: [{ required: true, message: '请输入启动命令', trigger: 'blur' }],
    },
  ],
  // 导入模型
  modelOptions: [
    {
      text: '模型名称',
      id: 'model_name',
      placeHolder: 'model-1',
      type: 0,
      rule: [{ required: true, message: '请输入模型名称', trigger: 'blur' }],
    },
    {
      text: '版本',
      id: 'model_version',
      placeHolder: '1.0.16',
      type: 0,
      rule: [{ required: true, message: '请输入版本', trigger: 'blur' },],
    },
    {
      text: '模型描述',
      id: 'description',
      type: 'description',
      rule: [{ required: true, trigger: 'blur' }],
      placeHolder: '这里是模型描述',
    },
    {
      text: '模型类型',
      id: 'model_type',
      type: 'drop',
      placeHolder: '请选择模型类型',
      rule: [{ required: true, message: '请输入模型类型', trigger: 'blur' }],
    },
    {
      text: '运行环境',
      id: 'runtime',
      type: 'drop',
      placeHolder: '请选择运行环境',
      rule: [{ required: true, message: '请选择运行环境', trigger: 'blur' }],
    },
    {
      text: 'OBS路径/SWR镜像路径',
      id: 'source_location',
      type: 0,
      placeHolder: '请输入OBS路径/SWR镜像路径',
      rule: [{ required: true, message: '请输入OBS路径/SWR镜像路径', trigger: 'blur' }],
    },
  ],
  // 训练任务
  trainOptions: [
    {
      text: '训练任务名称',
      id: 'name',
      placeHolder: 'train-157',
      rule: [{ required: true, message: '请输入训练任务名称', trigger: 'blur' }],
    },
    {
      text: '训练任务描述',
      id: 'description',
      placeHolder: '这里是描述',
      rule: [{ required: true, trigger: 'blur' }],
      type: 'description',
    },
    {
      text: '资源规格',
      id: 'flavor_id',
      type: 'allDrop',
      placeHolder: 'modelarts.vm.p100.large',
      rule: [{ required: true, message: '请输入资源规格', trigger: 'blur' }],
    },
    // 创建方式
    {
      text: '创建方式',
      id: 'type1',
      isShow:true,
      rule: [{ required: true, trigger: 'blur' }],
      type:'singleBox',
      op: [
        {text:'自定义算法',value:3},
        {text:'我的算法',value:2},
      ]
    },
    {
      text: '启动方式',
      id: 'type',
      ids: 3,
      isShow:true,
      rule: [{ required: true, trigger: 'blur' }],
      type:'singleBox',
      op: [
        {text:'预置框架',value:0},
        {text:'自定义',value:1}
      ]
    },
    {
      id: 'engine_id',
      type: 'drop',
      ids:0,
      isShow:true,
      placeHolder:'caffe-1.0.0-python2.7',
    },
    {
      text: '算法代码目录',
      id: 'code_dir',
      ids: 0,
      isShow:true,
      placeHolder: '请输入算法代码目录',
    },
    {
      text: '代码启动文件',
      id: 'boot_file',
      ids: 0,
      isShow:true,
      placeHolder: '请输入代码启动文件',
      rule: [{ required: true, message: '请输入代码启动文件', trigger: 'blur' }],
    },
    {
      text: '镜像',
      id: 'image_url',
      ids: 1,
      isShow:true,
      placeHolder: '请输入镜像',
      rule: [{ required: true, message: '请输入镜像', trigger: 'blur' }],
    },
    {
      text: '算法代码目录',
      id: 'code_dir',
      ids: 1,
      isShow:true,
      placeHolder: '请输入算法代码目录',
      rule: [{ required: true, message: '请输入算法代码目录', trigger: 'blur' }],
    },
    {
      text: '启动命令',
      id: 'command',
      ids: 1,
      isShow:true,
      placeHolder: '启动命令',
      rule: [{ required: true, message: '请输入启动命令', trigger: 'blur' }],
    },
    // 我的算法
    {
      text: '算法',
      id: 'content_name',
      type:'algorithmDrop',
      ids:2,
      placeHolder: '请选择算法',
      rule: [{ required: true, message: '请选择算法', trigger: 'blur' }],
    },
  ],
};
export default data;
